package com.jintian.smart.kernel.flowable.listener;

import com.jintian.smart.kernel.core.flow.IFlowEventListener;
import com.jintian.smart.kernel.core.flow.IFlowEventListenerRepository;
import com.jintian.smart.kernel.flowable.domain.view.FlowBizVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class FlowListenerRegister implements IFlowEventListenerRepository<FlowBizVo> {
    @Autowired
    private FlowEventListenerManager flowEventListenerManager;

    @Override
    public void registerListener(String process, String activity, String action, String moment, IFlowEventListener<FlowBizVo> listener) {
        flowEventListenerManager.registerListener(process, activity, action, moment, listener);
    }
}
